package com.lemon.cloud.datascope.sqlFilter;

import com.lemon.cloud.datascope.annotation.DataColumn;
import com.lemon.cloud.security.model.SecurityUser;
import net.sf.jsqlparser.expression.Expression;

/**
 * 处理数据权限接口
 */
public interface SqlFilter {

    /**
     * 处理数据权限
     *
     * @param dataColumns DataColumn 注解
     * @param user        当前用户
     * @param where       where条件
     */
    Expression calcScope(DataColumn dataColumns, Expression where, SecurityUser user);
}
